<template>
    <h1>这是首页</h1>
    <TodoList />
    <button @click="loading">123</button>
    <h1 @click="toggle">click</h1>
</template>

<script lang="ts" setup>
    import TodoList from '../components/TodoList.vue';
    import useFavicon from '../utils/use-favicon';
    import { useFullscreen } from '@vueuse/core';
    const { isFullscreen, enter, exit, toggle } = useFullscreen();
    let {favicon} = useFavicon();
    function loading() {
        favicon.value = 'https://www.baidu.com/img/flexible/logo/pc/result.png';
    }
</script>